﻿using CommonAdmin.Model;
using SqlSugar;
using System.Text.Json.Serialization;

namespace CommonAdmin.Dto
{
    [SugarTable("User")]
    public class UserDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 密码，md5加密
        /// </summary>
        [JsonIgnore]
        public string Password { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Bak { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public EnumStatus Status { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }
		/// <summary>
		/// 更新时间
		/// </summary>
		public DateTime UpdateTime { get; set; }
	}
}
